<!DOCTYPE html>
<!--
  ~ Copyright (C) 2018 guomw.Inc. All rights reserved.
  ~ 项目名称： mysite
  ~ 文件名称： manager.html
  ~ Date：18-9-19 下午3:47
  ~ Author: guomw
  -->

<html xmlns:th="http://www.thymeleaf.org">
<head th:include="common/head :: head('系统账户管理')"></head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>账户列表</h5>
                    <div class="ibox-tools">
                        <a data-toggle="modal" data-target="#addManagerModal" onclick="managerHandler.edit(0)">
                            <i class="fa fa-plus"></i>
                            添加管理账户
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-bordered table-hover table-center">
                        <thead>
                        <tr>
                            <th>序号</th>
                            <th>账户</th>
                            <th>所属角色</th>
                            <th>状态</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody id="table-content">

                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<!--列表模板-->
<script type="text/html" id="table-content-template">
    <tr>
        <td>{index}</td>
        <td>{loginName}</td>
        <td>{roleType}</td>
        <td style="color: red;">{enable}</td>
        <td class="col-sm-2" style="text-align: center">
            {btnItems}
        </td>
    </tr>
</script>
<script type="text/html" id="menus_btn_template">
    <a type="button" class="btn-a" data-toggle="modal" data-target="{target}" onclick="{clickMethod}">{title}</a>
</script>


<!--添加管理员模态窗-->
<modal th:include="template/modal::addManagerModal"></modal>

<footer th:include="common/footer::js"/>
<script src="../../resource/js/views/manager.js" th:src="@{/resource/js/views/manager.js}"></script>
</body>

</html>